from django.db import models


class CategoryModel(models.Model):
    name = models.CharField(max_length=20, verbose_name='分类名')
    image_url = models.CharField(max_length=200, verbose_name='分类代表图片')

    class Meta:
        db_table = 'tb_category'
        verbose_name = '菜品分类'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
